<template>
  <div class="active-city-box">
    <div class="select1">
          <AreaSelect></AreaSelect>
      </div>
    <ActiveTime></ActiveTime>
    <TabCity></TabCity>
    <DetailsDialog></DetailsDialog>
  </div>
</template>

<script>
import {Bus} from "../../Bus"
import AreaSelect from "../../components/sales/areaSelect";
import ActiveTime from "../../components/active/activeTime";
import TabCity from "../../components/sales/TabCity";
import DetailsDialog from "../../components/sales/DetailsDialog";
export default {
  components: {
    ActiveTime,
    TabCity,
    AreaSelect,
    DetailsDialog,
  },
  data() {
    return {
      isShow:true,
       lists: [
        {
          name: "省",
          prop: "province",
        },
        {
          name: "市",
          prop: "city",
        },
        {
          name: "总活跃度",
          prop: "sales",
        },
      ],
      cityDatas: [
        {
          province:"四川省",
          city:"成都市",
          sales:45,
        }
      ],
    };
  },
   mounted(){
    Bus.$emit("isshowcity",this.isShow);
    Bus.$emit("city-lists",this.lists);
    Bus.$emit("city-datas",this.cityDatas)
  }
};
</script>

<style lang="less" scoped>
.active-city-box {
  padding-top: 30px;
}
.active-time{
  margin: 30px 0px 0px 30px;
}
.select1 {
  margin-left: 30px;
  margin-right: 50px;
  width: 400px;
}
</style>